import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import orchardinfo from './modules/orchardinfo'
import supplies from './modules/supplies'
import maintenance from './modules/maintenance'
import task from './modules/task'
import taskEvaluation from './modules/taskEvaluation'
import inventory from './modules/inventory'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    orchardinfo,
    supplies,
    maintenance,
    task,
    taskEvaluation,
    inventory
  },
  getters
})

export default store
